home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Testing & Debugging / General tools / ZZPortList init / MakeFile < prev    next >
Encoding:
Makefile  |  1993-09-17  |  2.1 KB  |  92 lines  |  [TEXT/MPS ]

  1. #
  2. #    MakeFile        PortList
  3. #
  4. #    This code is the property of Delta Tao Software, Inc.
  5. #    If you distribute this code or any derivative of it in any fashion
  6. #    we may and will come after your ass and take everything you have
  7. #    and everything you will every get anywhere in the universe for
  8. #    all of time.
  9. #
  10. #    **Warning** this code is god-like and perfect. When we work
  11. #    on it choirs of angels gather around and sing. Mortals must keep
  12. #    out. This code is so blindingly beautiful that your eyes will melt
  13. #    if you look at it.
  14. #
  15. #    Copyright (C) 1993 Delta Tao Software, Inc. All rights reserved.
  16. #    Use by license only. 408-730-9336.
  17. #
  18.  
  19. #
  20. #    define the application and directories
  21. #
  22. Signature        =    'none'
  23. ExtName            =    PortList
  24. DstName            =    ZZPortList
  25.  
  26.  
  27. #
  28. #    the default rules and directory rules
  29. #    whenever something is dependent on a file that ends in .c.o
  30. #    and there is no other rule to build that file then
  31. #    these rules are used to build that file
  32. #
  33. .c.o ƒ .c
  34.     C {default}.c -o {default}.c.o {DefCOptions}
  35.  
  36.  
  37. #
  38. #    define the rez options
  39. #        -a        append
  40. #        -ov        overwrite existing
  41. #        -o        output file
  42. #        -c        creator
  43. #        -t        type
  44. #
  45. RezOptions            =    -a -ov -c {Signature} -t INIT
  46.  
  47.  
  48. #
  49. #    define the c options, object files, libraries,
  50. #    common dependencies, and include files
  51. #        -b2            put string literals in code
  52. #        -mbg full    full macsbug symbols
  53. #        -r            rigorous type checking
  54. #        -t            show compile times
  55. #        -i            search the local includes directory
  56. #
  57. DefCOptions        =    -b2 -mbg full -opt full -r -t -mc68020
  58. ObjectFiles        =    PortList.c.o        ∂
  59.                     Glue.a.o            ∂
  60.                      #
  61. CommonDeps        =    MakeFile    ∂
  62.                      #
  63. LibFiles        =     #{Libraries}Interface.o    ∂
  64.                      #
  65.  
  66.  
  67. #
  68. #    Compile the source files
  69. #
  70. PortList.c.o    ƒ    {CommonDeps}
  71. Glue.a.o        ƒ    {CommonDeps}
  72.  
  73.  
  74. #
  75. #    Link the source code
  76. #
  77. {ExtName}    ƒƒ    {ObjectFiles}
  78.     Link -o {ExtName} -c {Signature} -t INIT -rt INIT=128    ∂
  79.         -ra =resSysHeap,resLocked,resProtected,resPreload    ∂
  80.         -m PLPortList                                        ∂
  81.         {ObjectFiles} {LibFiles}                            ∂
  82.          #
  83.     Duplicate -y {ExtName} "{ExtensionsFolder}"{DstName}
  84.  
  85. #
  86. #    Add the resources
  87. #
  88. #{ExtName}    ƒƒ    {ExtName}.rsrc
  89. #    Echo 'include "'{ExtName}.rsrc'";'  |  Rez {RezOptions} -o {ExtName}
  90. #    SetFile {ExtName} -a iB
  91. #    Duplicate -y {ExtName} "{ExtensionsFolder}"{DstName}
  92.